package com.grad.why.studentsystem.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.grad.why.studentsystem.domain.Coursestandard;
import com.grad.why.studentsystem.mapper.CoursestandardMapper;
import com.grad.why.studentsystem.service.CourseStandardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
@Service(interfaceClass = CourseStandardService.class)
@Transactional
public class CourseStandardServiceImpl implements CourseStandardService {

    @Autowired
    private CoursestandardMapper coursestandardMapper;

    @Override
    public Coursestandard getCourseStandardInfoById(Integer transCid) {
        try{
            return coursestandardMapper.selectByPrimaryKey(transCid);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
}
